
<!doctype html>

<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>Home Page</title>
		<meta name="description" content="form to add new books">
		<meta name="author" content="Mark Tyers">
		<link href="style.css" type="text/css" rel="stylesheet" />
		<link href="myTable.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<p>Hello: {{user}}, please choice which one to learning</p>
		{{#each teachMaterialList}}
			<p><a href="/teachmaterial/{{id}}">{{name}}</a></p>
        {{/each}}
		<p>Here are the results of your recent tests：</p>
		<table border="1px" class="table">
			<tr><th>test time</th><th>final score</th><th>final status</th></tr>
				{{#each answerLogList}}
				<tr>
					<td>{{create_time}}</td>
					<td>{{final_score}}</td>
					<td>
						{{#if is_success}}
							pass
						{{else}}
							fail
						{{/if}}
					</td>
				</tr>
        		{{/each}}
		</table>
		<p><a href="/logout">log out</a></p>
	</body>
</html>
